package java67_3;

import java.util.Scanner;

public class MarketDonate {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("是不是会员?");
		String answer = in.next();
		System.out.println("购物金额:");
		double money = in.nextDouble();
		if (answer.equals("y"))// 是会员
		{
			if (money >= 200) {
				money = money * 0.7;
			} else {
				money = money * 0.8;
			}
		} else {
			if (money >= 100) {
				money = money * 0.9;
			}
		}
		System.out.println("应付:" + money + "元");
	}

}
